package com.taotao.health.remote;

import com.taotao.chatbot.domain.po.MedDisease;
import com.taotao.common.core.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "taotao-chatbot", url = "http://localhost:9999")
public interface RemoteChatbo {

    @GetMapping("/part/list")
    public Result partList();

    // 远程调用
    @GetMapping("/part/findByIdDisease/{id}")
    public List<MedDisease> findByIdDisease(@PathVariable("id") Integer id);


    //查询医生列表
    @GetMapping("/findDoctorByDisease/{diseaseId}")
    public Result findDoctorByDisease(@PathVariable("diseaseId") Integer diseaseId);
}
